package com.hdhere.application.controller.admin;

import com.hdhere.domain.common.util.LoginUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;


@RequestMapping("/admin")
@Controller("AdminHomeController")
public class HomeController {

    @GetMapping
    public String index(Map<String, Object> map){
        var user = LoginUtils.getLoginUser();
        map.put("user", user);

        return "admin/index";
    }

    @GetMapping("welcome")
    public String welcome(){
        return "admin/welcome";
    }
}
